package com.apache.rpc.entity;

import com.apache.api.entity.BaseEntity;

/**
 * description: RPC执行监控信息<br>
 * DROP TABLE IF EXISTS t_rpc_monitoring;
 * CREATE TABLE t_rpc_monitoring (
 * monitoring_id  varchar(36) NOT NULL ,
 * bean_id  varchar(100) NULL ,
 * start_time  varchar(30) NULL ,
 * stop_time  varchar(30) NULL ,
 * server_addr  varchar(500) NULL ,
 * method_key  varchar(300) NULL ,
 * req_params  text NULL ,
 * monitoring1  varchar(255) NULL ,
 * monitoring2  varchar(255) NULL ,
 * PRIMARY KEY (monitoring_id)
 * );
 *
 * @author dyh 创建时间：2018年03月09日
 */
public class RpcMonitoring extends BaseEntity {

    private String monitoringId;

    private String startTime;

    private String stopTime;

    private String serverAddr;

    private String beanId;

    private String methodKey;

    private String reqParams;

    private String monitoring1;

    private String monitoring2;

    public String getMonitoringId() {
        return monitoringId;
    }

    public void setMonitoringId(String monitoringId) {
        this.monitoringId = monitoringId;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getStopTime() {
        return stopTime;
    }

    public void setStopTime(String stopTime) {
        this.stopTime = stopTime;
    }

    public String getServerAddr() {
        return serverAddr;
    }

    public void setServerAddr(String serverAddr) {
        this.serverAddr = serverAddr;
    }

    public String getBeanId() {
        return beanId;
    }

    public void setBeanId(String beanId) {
        this.beanId = beanId;
    }

    public String getMethodKey() {
        return methodKey;
    }

    public void setMethodKey(String methodKey) {
        this.methodKey = methodKey;
    }

    public String getReqParams() {
        return reqParams;
    }

    public void setReqParams(String reqParams) {
        this.reqParams = reqParams;
    }

    public String getMonitoring1() {
        return monitoring1;
    }

    public void setMonitoring1(String monitoring1) {
        this.monitoring1 = monitoring1;
    }

    public String getMonitoring2() {
        return monitoring2;
    }

    public void setMonitoring2(String monitoring2) {
        this.monitoring2 = monitoring2;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("RpcMonitoring{");
        sb.append("monitoringId=" + this.monitoringId + ";");
        sb.append("startTime=" + this.startTime + ";");
        sb.append("stopTime=" + this.stopTime + ";");
        sb.append("serverAddr=" + this.serverAddr + ";");
        sb.append("beanId=" + this.beanId + ";");
        sb.append("methodKey=" + this.methodKey + ";");
        sb.append("reqParams=" + this.reqParams + ";");
        sb.append("monitoring1=" + this.monitoring1 + ";");
        sb.append("monitoring2=" + this.monitoring2 + ";}");
        return sb.toString();
    }
}
